{extend name="../../admin/view/main"}

{block name="content"}

<form onsubmit="return false;" id=ArticleForm" data-auto="true" method="post" enctype="multipart/form-data" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body think-box-shadow">
        <div class="layui-form-item block margin-bottom-20 clearBoth">
            <span class="color-green">详情内容</span>
            <textarea id="content" type="text/plain" name="content" style="width:100%;height:500px;">{$vo.content|default=''|raw}</textarea>
        </div>
        <div class="text-center margin-0 clearBoth">
            <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
            <button class="layui-btn" type="submit">保存数据</button>
        </div>

    </div>
</form>
{/block}

{block name='script'}
<script>
    window.form.render();

    require(['ckeditor'], function () {
        window.createEditor('[name=content]', {height: 500});
    });

</script>
{/block}